﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Kylin.Wiki.Model.View
{
    /// <summary>
    /// 用户VM
    /// </summary>
    public class UserVM:BaseView
    {
        /// <summary>
        /// 用户ID主键
        /// </summary>
        public int UserID { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 显示名称
        /// </summary>
        public string DisplayName { get; set; }

        /// <summary>
        /// 电话号码
        /// </summary>
        public string Mobile { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string Avatar { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool Status { get; set; }

        /// <summary>
        /// 部门ID
        /// </summary>
        public int DeptID { get; set; }

        /// <summary>
        /// 角色集合
        /// </summary>
        public int[] Roles { get; set; }

    }

    /// <summary>
    /// 用户信息视图
    /// </summary>
    public class UserInfoVM
    {
        /// <summary>
        /// 用户信息
        /// </summary>
        public UserVM UserInfo { get; set; }

        /// <summary>
        /// 角色集合
        /// </summary>
        public List<string> Roles { get; set; }

        /// <summary>
        /// 权限表示集合
        /// </summary>
        public List<string> Auth { get; set; }
    }
}
